//
//  kongBaiye.m
//  DJS
//
//  Created by mac on 2018/7/17.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "kongBaiye.h"

@implementation kongBaiye
-(void)creatView{
    self.backgroundColor=ColorWithRGB(239, 239, 245);
    UIImageView *imageView=[UIImageView new];
    [self addSubview:imageView];
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(-50);
        make.centerX.mas_equalTo(0);
        make.width.mas_equalTo(200);
        make.height.mas_equalTo(164);
    }];
    imageView.image=[UIImage imageNamed:@"空白页"];
    
    UIButton *btn=[UIButton new];
    [self addSubview:btn];
    [btn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(0);
        make.centerY.mas_equalTo(70);
        make.height.mas_equalTo(30);
        make.width.mas_equalTo(120);
    }];
    btn.layer.cornerRadius=15;
    btn.layer.masksToBounds=YES;
    btn.layer.borderWidth=1;
    btn.layer.borderColor=[UIColor orangeColor].CGColor;
    [btn setTitle:@"重新加载" forState:0];
    [btn setTitleColor:[UIColor orangeColor] forState:0];
    btn.titleLabel.font=[UIFont systemFontOfSize:14];
    [btn addTarget:self action:@selector(btn) forControlEvents:UIControlEventTouchUpInside];
    
}
-(void)shanChu{
    [self removeFromSuperview];
}
-(void)btn{
    [self removeFromSuperview];
     _customSelectedBlock();
}

@end
